<form [formGroup]="currentForm">
  <div class="form-group row">
    <label for="throwName" class="col-4 col-form-label text-right">通道名称</label>
    <input id="throwName" formControlName="throwName">
  </div>
  <div class="form-group row">
    <label for="userName" class="col-4 col-form-label text-right">{{userNameInfo}}</label>
    <input id="userName" formControlName="userName">
  </div>
  <div class="form-group row">
    <label for="number" class="col-4 col-form-label text-right">{{numberInfo}}</label>
    <input id="number" formControlName="number">
  </div>
  <div class="form-group row" *ngIf="currentType === 1">
    <label for="bankName" class="col-4 col-form-label text-right">银行名</label>
    <input id="bankName" formControlName="bankName">
  </div>
  <div class="form-group row" *ngIf="currentType === 1">
    <label for="subAddr" class="col-4 col-form-label text-right">分行地址</label>
    <input id="subAddr" formControlName="subAddr">
  </div>
  <div class="form-group row" *ngIf="currentType === 2 || currentType === 3">
    <label for="robotImage" class="col-4 col-form-label text-right">收款二维码</label>
    <img #imageElement style="height: 80px;width: 80px" id="robotImage" [src]="imageUrl" onerror="this.src='../../../../../assets/cat.png'">
    <button class="btn btn-sm ml-3" style="height: 30px;width: 70px;margin-top: 25px" (click)="changeAvatar()">点击上传</button>
    <input #fileInput type="file" (input)="selectFile($event)" style="display: none">
  </div>

  <div class="row">
    <div class="col-12 text-center">
      <button class="btn btn-sm btn-teal w-50" [disabled]="!currentForm.valid" (click)="update()">
        保存信息
      </button>
    </div>
  </div>
</form>
